package me.landery.modules.sinco.repository;

import me.landery.modules.sinco.domain.Order;
import me.landery.modules.system.domain.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface OrderRepository extends JpaRepository<Order, Long>, JpaSpecificationExecutor<Order> {
    /**
     * 根据 PID 查询
     * @param user pid
     * @return /
     */
    List<Order> findByUser(User user);
}